package com.fbs.wowo.manage.web;

import com.fbs.wowo.base.BaseController;
import com.fbs.wowo.base.Response;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController extends BaseController {

    @GetMapping("/test1")
    @RequiresPermissions("user:read")
    public Response test1(@RequestParam String name) {
        System.out.println("666" + name);
        return success();
    }

    @GetMapping("/test2")
    public Response test2(@RequestParam String tip) {
        System.out.println("777" + tip);
        return success("成功");
    }
}
